package com.huawei.appgallery.foundation.ui.framework.cardframe.fragment;

import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import androidx.fragment.app.Fragment;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.DataFilterSwitch;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.ShareInfo;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.protocol.BaseListFragmentProtocol;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.protocol.BaseListFragmentRequest;
import com.huawei.appgallery.foundation.ui.framework.cardframe.widget.FilterDataLayout;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.widget.CardListAdapter;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.BaseTitleBean;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerInfo;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerItem;
import com.huawei.appgallery.foundation.ui.framework.widget.NetworkRemindBar;
import com.huawei.appgallery.foundation.ui.framework.widget.NodataWarnLayout;
import com.huawei.appgallery.foundation.ui.framework.widget.PullUpListView;
import com.huawei.appgallery.serverreqkit.api.bean.startup.StartupResponse.TabInfo;
import com.huawei.appmarket.framework.titleframe.title.DefaultTitle;
import com.huawei.appmarket.framework.widget.CustomViewPager;
import com.huawei.appmarket.framework.widget.ExpandScrollLayout;
import com.huawei.hwid.core.constants.HwAccountConstants;
import huawei.widget.HwSubTabWidget;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import o.azb;
import o.cha;
import o.chb;
import o.chi;
import o.chj;
import o.chl;
import o.cho;
import o.chq;
import o.chs;
import o.chy;
import o.chz;
import o.cia;
import o.cic;
import o.cid;
import o.cih;
import o.cip;
import o.ciy;
import o.ciz;
import o.cja;
import o.cjd;
import o.cje;
import o.cjf;
import o.BaseRequest;
import o.dge;
import o.dgh;
import o.dgm;
import o.dgp;
import o.dgy;
import o.dhi;
import o.dhj;
import o.dhm;
import o.dhr;
import o.djb;
import o.dks;
import o.dky.d;
import o.dky.h;
import o.dky.i;
import o.dky.j;
import o.Logger;
import o.dof;
import o.doo;
import o.ContentManager;
import o.epr;
import o.CollectCheck;
import o.ActivityUtil;
import o.MinimumFactory;
import o.evf;
import o.evk;
import o.fle;
import o.PagerAdapter;
import org.json.JSONException;
import org.json.JSONObject;

public class BaseListFragment<T extends BaseListFragmentProtocol> extends TaskFragment<T> implements com.huawei.appgallery.foundation.ui.framework.widget.NetworkRemindBar.c, com.huawei.appgallery.foundation.ui.framework.widget.PullUpListView.a, cic, chy, OnScrollListener, ciy, ciz, djb, dhm, cid {
    public String ʻᐝ;
    public String ʼˊ;
    public int ʼᐝ;
    protected String ʽˊ;
    public String ʽˋ;
    protected String ʽᐝ;
    protected long ʾॱ;
    public String ʿॱ;
    protected String ˈॱ;
    protected int ˉॱ;
    private int ˊ = 0;
    protected String ˊʻ;
    protected String ˊʼ;
    protected String ˊʽ;
    protected String ˋʻ;
    protected ShareInfo ˋʼ;
    public String ˋʽ;
    protected SpinnerInfo ˌॱ;
    protected String ˎͺ;
    protected int ˏͺ;
    protected boolean ˑॱ = true;
    public PullUpListView ͺˎ;
    protected int ͺˏ;
    public NetworkRemindBar ՙ;
    public cia י;
    public CardListAdapter ـॱ;
    protected cha ٴ;
    public NodataWarnLayout ߴ;
    protected FrameLayout ߵ;
    protected FilterDataLayout ߺ;
    private chb ॱ = chb.HOME_TAB;
    protected ExpandScrollLayout ॱʾ;
    protected FrameLayout ॱʿ;
    protected LinearLayout ॱˈ;
    protected View ॱˉ;
    public cja ॱˌ;
    protected ViewGroup ॱˍ;
    public CustomViewPager ॱˑ;
    protected HwSubTabWidget ॱـ;
    protected cje ॱᐧ;
    protected boolean ॱᐨ = false;
    protected boolean ॱᶥ = false;
    protected String ॱㆍ = "secondarypage";
    protected boolean ॱꓸ = false;
    public chi ॱꜞ;
    public boolean ॱꜟ = false;
    protected cjf ॱꞌ;
    protected DataFilterSwitch ॱﹳ;
    protected SpinnerItem ॱﾞ;
    protected BaseListFragmentProtocol ॱﾟ;
    protected FrameLayout ᐝʻ;
    protected boolean ᐝʼ = false;
    public List<dgp> ᐝʽ = new ArrayList();
    public c ᐧॱ;
    public boolean ᐨॱ;
    protected LayoutInflater ᴵ;
    protected a ᵎ = a.INIT;
    public boolean ᵔ = true;
    protected dhr ᵢ;
    public long ᶫ = 0;
    protected ImageView ⁱ;
    protected long ㆍॱ;
    protected boolean ꓸॱ = false;

    public interface c {
        void ˋ(int i, cia o_cia);

        cia ॱ(int i);
    }

    enum a {
        INIT,
        ONATTACT,
        ONSELECTED,
        UNSELECTED
    }

    public void ʻ(String str) {
        this.ʽˊ = str;
    }

    public String ॱᶥ() {
        return this.ʼˊ;
    }

    protected void ʽ(String str) {
        this.ʼˊ = str;
    }

    protected void ॱˊ(int i) {
        this.ˉॱ = i;
    }

    protected void ʼ(String str) {
        this.ˈॱ = str;
    }

    public int ॱꓸ() {
        return this.ʼᐝ;
    }

    protected void ˋॱ(int i) {
        this.ʼᐝ = i;
    }

    public void ʻॱ(int i) {
        this.ˏͺ = i;
    }

    public void ᐝ(String str) {
        this.ʽˋ = str;
    }

    protected long ॱㆍ() {
        return this.ᶫ;
    }

    public void ˏ(long j) {
        this.ᶫ = j;
    }

    public boolean ॱᐧ() {
        return ॱᐨ() == chb.THIRD_TAB;
    }

    public void ˎ(chb o_chb) {
        this.ॱ = o_chb;
    }

    public chb ॱᐨ() {
        return this.ॱ;
    }

    public boolean ॱꞌ() {
        return ॱꜟ() || ॱﾞ();
    }

    protected boolean ॱꜟ() {
        return ॱᐨ() == chb.SECONDARY_LIST_TAB;
    }

    protected boolean ॱﾞ() {
        return ॱᐨ() == chb.SECONDARY_MULTI_TAB;
    }

    protected boolean ॱﹳ() {
        return ॱᐨ() == chb.HOME_TAB;
    }

    protected boolean ॱꜞ() {
        return ॱꜟ() || ॱᐧ() || ꜝ() <= 1;
    }

    public void ॱ(Activity activity) {
        ˋ(a.ONATTACT);
        super.ॱ(activity);
        if (activity instanceof c) {
            this.ᐧॱ = (c) activity;
        }
        ॱﾟ();
        ᐝʼ();
        Logger.ˎ("BaseListFragment", "onAttach: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
    }

    public View ˋ(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        this.ᴵ = layoutInflater;
        this.ॱˍ = (ViewGroup) layoutInflater.inflate(ߵ(), viewGroup, false);
        if (this.י == null) {
            this.י = ˊ(ॱˋ().getApplicationContext());
        }
        ᐝʻ();
        ˋ(this.ॱˍ, layoutInflater);
        ᐝʽ();
        super.ˋ(layoutInflater, viewGroup, bundle);
        if (!(this.ᵢ == null || this.ॱᶥ)) {
            this.ᵢ.ॱ(this.ͺˏ, this.י.csSheet, this.ˋʻ);
        }
        ˌॱ();
        Logger.ˎ("BaseListFragment", "onCreateView: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
        return this.ॱˍ;
    }

    protected void ᐝʽ() {
        if (this.ͺˎ != null && !ﹳॱ()) {
            this.ـॱ = ˎ(ॱˋ(), this.י);
            this.ـॱ.setCardEventListener(this);
            this.ـॱ.setLazyLoadedPage(this);
            this.ͺˎ.setAdapter(this.ـॱ);
            this.ͺˎ.setLoadingListener(this);
        }
    }

    protected void ᐝʻ() {
        if (this.ͺˏ != 1) {
            if (evf.ˋ(ॱˋ())) {
                ((fle) ॱˋ()).ˊ(ॱˋ().getWindow().getDecorView(), "background", d.ˏॱ);
            } else {
                ॱˋ().getWindow().getDecorView().setBackgroundColor(ᐝॱ().getColor(d.ˏॱ));
            }
        }
    }

    public void ˌ() {
        super.ˌ();
        this.ᐨॱ = true;
        if (!(this.ˉॱ == 0 || dof.ʽ(this.ˈॱ))) {
            dgh.onEvent(new dge.d(ॱˋ(), this.ˉॱ).ˏ(this.ˈॱ).ˋ());
        }
        if (this.ॱꞌ != null) {
            this.ॱꞌ.ˊ();
        }
        if (this.ᵔ) {
            this.ㆍॱ = System.currentTimeMillis();
            if (!dof.ʽ(this.ʽˊ)) {
                this.ʾॱ = dgh.ॱ();
            }
            Logger.ˎ("BaseListFragment", "onResume, AnalyticUtils, " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", analyticId = " + this.ʽˊ);
        }
        if (this.ˊ == 0) {
            dks.ˊ().ॱ(1);
        }
        if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onResume: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
        }
    }

    public void ˋᐝ() {
        super.ˋᐝ();
        if (this.ᵔ && this.ˊ == 0) {
            if (!dof.ʽ(this.ʽˊ)) {
                dgh.ˋ(ॱˋ(), this.ʽˊ, this.ʾॱ);
            }
            ͺˎ();
            Logger.ˎ("BaseListFragment", "onPause, AnalyticUtils, " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", analyticId = " + this.ʽˊ + ", stayTime = " + this.ㆍॱ);
        }
        this.ᐨॱ = false;
        if (this.ˊ == 0) {
            dks.ˊ().ॱ(0);
        }
        if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onPause: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
        }
    }

    public void ᐝ() {
        this.ᶫ = 0;
        if (this.י != null) {
            this.י.ॱ(null);
        }
        ॱˎ(0);
        if (this.ॱꞌ != null) {
            this.ॱꞌ.ॱॱ();
            this.ॱꞌ = null;
        }
        if (this.ٴ != null) {
            this.ٴ.ˊ();
            this.ٴ = null;
        }
        if (this.ـॱ != null) {
            this.ـॱ.destroy();
            this.ـॱ = null;
        }
        if (this.ॱˈ != null) {
            this.ॱˈ.removeAllViews();
            this.ॱˈ = null;
        }
        if (this.ᐝʻ != null) {
            this.ᐝʻ.removeAllViews();
            this.ᐝʻ = null;
        }
        this.ॱˍ = null;
        this.ॱʾ = null;
        this.ॱʿ = null;
        this.ߵ = null;
        this.ॱˑ = null;
        this.ͺˎ = null;
        ˋʼ();
        super.ᐝ();
        if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onDestroyView: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
        }
    }

    private void ˋ(a aVar) {
        if (this.ᵎ == a.INIT) {
            this.ᵎ = aVar;
        }
    }

    public void ˎ(dhr o_dhr) {
        this.ᵢ = o_dhr;
    }

    public void ˎˎ() {
        super.ˎˎ();
        Logger.ˎ("BaseListFragment", "onDestroy: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
    }

    protected void ᐧॱ() {
        dgy.ˋ(this.ʼˊ);
    }

    protected void ॱﾟ() {
        if (this.ॱꜞ == null) {
            this.ॱꜞ = new chi();
        }
    }

    protected void ᐝʼ() {
        if (this.ॱﾟ == null) {
            this.ॱﾟ = (BaseListFragmentProtocol) ˆ();
            if (this.ॱﾟ != null && this.ॱﾟ.ˎ() != null) {
                BaseListFragmentRequest ˎ = this.ॱﾟ.ˎ();
                this.ʼˊ = ˎ.ˊ();
                this.ʽᐝ = ˎ.ˊᐝ();
                this.ʼᐝ = ˎ.ʻॱ();
                this.ʽˋ = this.ॱﾟ.ˎ().ˏ();
                this.ˏͺ = ˎ.ˋॱ();
                this.ˊʼ = ˎ.ʻ();
                this.ʿॱ = ˎ.ʻ();
                this.ʽˊ = ˎ.ʼ();
                this.ˉॱ = ˎ.ʽ();
                this.ˈॱ = ˎ.ॱॱ();
                this.ͺˏ = ˎ.ˊॱ();
                this.ॱㆍ = ˎ.ॱˊ();
                this.ॱᐨ = ˎ.ॱᐝ();
                this.ॱᶥ = ˎ.ʿ();
                this.ॱꓸ = ˎ.ͺ();
                this.ˎͺ = ˎ.ᐝ();
                this.ˋʻ = ˎ.ˏॱ();
                this.ॱꜟ = ˎ.ᐝॱ();
                this.ᐝʼ = ˎ.ॱˎ();
                this.ॱﾞ = ˎ.ॱˋ();
                this.ॱﹳ = ˎ.ʾ();
                this.ॱᐧ = ˎ.ˈ();
                this.ˊʽ = ˎ.ʽॱ();
                this.ˌॱ = ˎ.ʼॱ();
                this.ˋʼ = ˎ.ˉ();
                this.ˊʻ = ˎ.ˊˋ();
                this.ॱ = ˎ.ˋˊ();
                ˋ(ˏ(ˎ.ˋˋ(), this.ʽᐝ));
                if (this.ᵎ != a.ONSELECTED) {
                    this.ᵔ = ˎ.ˊˊ();
                }
                if (this.ॱᶥ && !TextUtils.isEmpty(this.ˊʽ)) {
                    ᐨॱ();
                }
            }
        }
    }

    protected void ᐨॱ() {
    }

    public void ˋ(List<dgp> list) {
        if (ॱꜟ() || ॱᐧ()) {
            this.ᐝʽ.clear();
        } else if (!CollectCheck.isEmpty((List) list)) {
            this.ᐝʽ.clear();
            this.ᐝʽ.addAll(list);
        }
    }

    protected cia ˊ(Context context) {
        return new chl(context);
    }

    public void ॱ(LayoutInflater layoutInflater) {
        if (this.ॱˌ != null && this.ॱˌ.ˎ()) {
            this.ॱˌ.onEvent(0);
            this.ॱˌ = null;
            ˎ(this.ᐝʻ, 8);
        }
        this.ॱˌ = ߴ();
        if (this.ॱˌ == null || this.ᐝʻ == null) {
            Logger.ˋ("BaseListFragment", "showLoading, loadingCtl = " + this.ॱˌ + ", loadingContainer = " + this.ᐝʻ);
            return;
        }
        View ˏ = this.ॱˌ.ˏ(layoutInflater);
        this.ॱˌ.ˊ();
        ˎ(this.ᐝʻ, 0);
        this.ᐝʻ.removeAllViews();
        this.ᐝʻ.addView(ˏ);
        this.ॱˌ.ˋ(new OnClickListener(this) {
            final /* synthetic */ BaseListFragment ˎ;

            {
                this.ˎ = r1;
            }

            public void onClick(View view) {
                Logger.ˎ("BaseListFragment", "showLoading, onLoadingRetry()");
                this.ˎ.ʼᐝ();
            }
        });
        ॱˍ();
        this.ॱˌ.ˏ();
    }

    public void ॱˎ(int i) {
        if (this.ͺˎ != null) {
            this.ͺˎ.ˏॱ();
        }
        if (this.ॱˌ != null && this.ॱˌ.ˎ()) {
            this.ॱˌ.onEvent(i);
            this.ॱˌ = null;
        }
        ˎ(this.ᐝʻ, 8);
    }

    protected cja ߴ() {
        return null;
    }

    protected void ॱˍ() {
    }

    protected int ߵ() {
        if (ॱꜟ() || ॱᐧ()) {
            return i.ˋॱ;
        }
        return i.ˊᐝ;
    }

    protected int ᵢ() {
        return h.ᐝ;
    }

    public void ˋ(cia o_cia) {
        this.י = o_cia;
    }

    protected CardListAdapter ˎ(Context context, cia o_cia) {
        return new CardListAdapter(context, o_cia);
    }

    public List<dgp> ॱ(BaseDetailResponse baseDetailResponse) {
        if (baseDetailResponse == null || baseDetailResponse.ˎ() == null) {
            return null;
        }
        return ˏ(baseDetailResponse.ˎ(), baseDetailResponse.ˋˊ());
    }

    protected boolean ᴵ() {
        return ꜝ() > 1;
    }

    protected List<dgp> ˏ(List<TabInfo> list, String str) {
        if (list == null || list.size() <= 1) {
            return null;
        }
        List<dgp> arrayList = new ArrayList();
        for (int i = 0; i < list.size(); i++) {
            TabInfo tabInfo = (TabInfo) list.get(i);
            if (tabInfo == null || TextUtils.isEmpty(tabInfo.ʼ())) {
                Logger.e("BaseListFragment", "tabInfo = " + (tabInfo == null ? HwAccountConstants.NULL : "tabId is empty"));
            } else {
                dgp o_dgp = new dgp();
                o_dgp.ˋ(tabInfo.ʼ());
                o_dgp.ॱ(tabInfo.ʼ().hashCode() + i);
                o_dgp.ˊ(tabInfo.ʽ());
                o_dgp.ˎ(tabInfo.ᐝ());
                o_dgp.ˊ(tabInfo.ʻ());
                o_dgp.ॱ(tabInfo.ͺ());
                o_dgp.ˏ(tabInfo.ॱˊ());
                o_dgp.ˎ(tabInfo.ॱˊ());
                o_dgp.ˏ(tabInfo.ॱॱ());
                o_dgp.ᐝ(str);
                o_dgp.ʼ(this.ॱㆍ);
                arrayList.add(o_dgp);
            }
        }
        return arrayList;
    }

    protected void ˌॱ() {
    }

    protected void ˋʼ() {
    }

    protected void ˋ(ViewGroup viewGroup, LayoutInflater layoutInflater) {
        ㆍॱ();
        ᵔ();
        if (!ᴵ()) {
            ˏ(viewGroup);
            ˊ(viewGroup);
            ॱ(viewGroup);
        }
    }

    protected void ˏ(ViewGroup viewGroup) {
        this.ߴ = (NodataWarnLayout) viewGroup.findViewById(h.ʽˊ);
        ॱ(this.ߴ);
    }

    protected void ॱ(ViewGroup viewGroup) {
        this.ᐝʻ = (FrameLayout) viewGroup.findViewById(h.ॱʻ);
    }

    protected void ˊ(ViewGroup viewGroup) {
        this.ՙ = (NetworkRemindBar) viewGroup.findViewById(h.ʻˊ);
        if (this.ՙ != null) {
            this.ՙ.setNetworkRemindBarListener(this);
        }
    }

    protected void ᵔ() {
        if (ॱꜟ() || ॱᐧ()) {
            ˎ(this.ॱˍ);
        } else if (ॱﾞ()) {
            this.ߵ = (FrameLayout) this.ॱˍ.findViewById(h.ͺॱ);
            this.ߵ.addView(ॱˈ());
        } else {
            this.ߵ = (FrameLayout) this.ॱˍ.findViewById(h.ͺॱ);
            if (this.ߵ == null) {
                return;
            }
            if (ᴵ()) {
                this.ߵ.addView(ॱˈ());
            } else {
                this.ߵ.addView(ˉॱ());
            }
        }
    }

    private FrameLayout ˉॱ() {
        this.ॱʿ = (FrameLayout) this.ᴵ.inflate(ᵎ(), null);
        ˎ(this.ॱʿ);
        return this.ॱʿ;
    }

    public int ᵎ() {
        return i.ᐝ;
    }

    protected ExpandScrollLayout ॱˈ() {
        this.ॱʾ = (ExpandScrollLayout) this.ᴵ.inflate(i.ʽ, null);
        this.ߺ = (FilterDataLayout) this.ॱʾ.findViewById(h.ˎˏ);
        this.ॱـ = (HwSubTabWidget) this.ॱʾ.findViewById(h.ॱͺ);
        this.ॱˉ = this.ॱʾ.findViewById(h.י);
        this.ॱˑ = (CustomViewPager) this.ॱʾ.findViewById(h.ᐝᐝ);
        this.ॱʾ.setHeadView(this.ߺ);
        this.ॱʾ.setViewPager(this.ॱˑ);
        this.ॱʾ.setScrollableTab(this.ॱـ);
        this.ॱʾ.setOnScrollListener(new chj(this));
        this.ⁱ = (ImageView) this.ॱʾ.findViewById(h.ʿ);
        azb.ʻ(this.ⁱ);
        ˋʻ();
        ˊ(this.ᐝʽ);
        ˊʻ();
        return this.ॱʾ;
    }

    protected void ˎ(View view) {
        if (this.ͺˎ == null && view != null) {
            this.ͺˎ = (PullUpListView) view.findViewById(h.ॱ);
            if (this.ͺˎ != null) {
                this.ͺˎ.setNeedFootView(ﹺ());
                this.ͺˎ.setOnScrollListener(this);
                this.ͺˎ.setVerticalScrollBarEnabled(false);
                this.ͺˎ.setDrawSelectorOnTop(false);
                this.ͺˎ.setSelector(new ColorDrawable(0));
            }
        }
    }

    private void ˊʻ() {
        if (this.ॱˑ != null && this.ॱـ != null && ﹳॱ()) {
            Logger.ˎ("BaseListFragment", "initSubTabAndViewPager: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
            this.ٴ = ॱʿ();
            this.ٴ.ˏ(this);
            this.ٴ.ˏ(new chq(this));
            this.ॱˑ.setAdapter(this.ٴ);
            this.ॱˑ.addOnPageChangeListener(new cho(this.ॱـ, this.ٴ));
            this.ॱˑ.setCurrentItem(ˎ(this.ᐝʽ));
        }
    }

    protected cha ॱʿ() {
        return new cha(ॱˋ(), ʽॱ(), this.ᐝʽ);
    }

    private int ˎ(List<dgp> list) {
        if (!CollectCheck.isEmpty((List) list)) {
            for (int i = 0; i < list.size(); i++) {
                if ("1".equals(((dgp) list.get(i)).ˎ())) {
                    return i;
                }
            }
        }
        return 0;
    }

    public boolean ॱ(List<dgp> list) {
        if (!ﹳॱ()) {
            return true;
        }
        String ʻ = ʻ(this.ᐝʽ);
        String ʻ2 = ʻ((List) list);
        if (ʻ == null || !ʻ.equals(ʻ2)) {
            return false;
        }
        return true;
    }

    private String ʻ(List<dgp> list) {
        if (list == null || list.size() <= 1) {
            return null;
        }
        StringBuffer stringBuffer = new StringBuffer();
        for (dgp ˏ : list) {
            stringBuffer.append(ˏ.ˏ());
        }
        return stringBuffer.toString();
    }

    protected void ˋ(BaseRequest o_cvu, BaseDetailResponse baseDetailResponse) {
        int i = 0;
        if (baseDetailResponse != null) {
            List ʻॱ = baseDetailResponse.ʻॱ();
            List ᐝॱ = baseDetailResponse.ᐝॱ();
            int size = ʻॱ == null ? 0 : ʻॱ.size();
            if (ᐝॱ != null) {
                i = ᐝॱ.size();
            }
            if (size <= 0 || r0 <= 0) {
                Logger.e("BaseListFragment", "addDefaultPageData, layoutSize = " + size);
                return;
            }
            String ˏ = ˏ(this.ᐝʽ);
            if (ˏ != null) {
                dgy.ॱ(ˏ, new b(o_cvu, baseDetailResponse));
                Logger.ˏ("BaseListFragment", "addDefaultPageData, defaultTabId : " + ˏ);
                return;
            }
            Logger.e("BaseListFragment", "addDefaultPageData, defaultTabId == null");
            return;
        }
        Logger.e("BaseListFragment", "addDefaultPageData, res == null");
    }

    protected String ˏ(List<dgp> list) {
        if (CollectCheck.isEmpty((List) list)) {
            return null;
        }
        dgp o_dgp;
        for (int i = 0; i < list.size(); i++) {
            o_dgp = (dgp) list.get(i);
            if (o_dgp != null && "1".equals(o_dgp.ˎ())) {
                return o_dgp.ˏ();
            }
        }
        o_dgp = (dgp) list.get(0);
        return o_dgp == null ? null : o_dgp.ˏ();
    }

    protected void ˊ(List<dgp> list) {
        if (this.ॱـ != null && ᴵ()) {
            this.ॱـ.ˎ();
            int size = list.size();
            for (int i = 0; i < size; i++) {
                boolean z;
                dgp o_dgp = (dgp) list.get(i);
                HwSubTabWidget hwSubTabWidget = this.ॱـ;
                hwSubTabWidget.getClass();
                huawei.widget.HwSubTabWidget.a aVar = new huawei.widget.HwSubTabWidget.a(hwSubTabWidget, o_dgp.ˊ(), new chs(this));
                aVar.ˎ(i);
                hwSubTabWidget = this.ॱـ;
                if (i == ˎ((List) list)) {
                    z = true;
                } else {
                    z = false;
                }
                hwSubTabWidget.ॱ(aVar, z);
            }
        }
    }

    protected void ॱॱ(List<dgp> list) {
        if (this.ॱـ != null && !CollectCheck.isEmpty((List) list)) {
            int size = list.size();
            int ॱ = this.ॱـ.ॱ();
            if (size < ॱ) {
                while (this.ॱـ.ॱ() > size) {
                    this.ॱـ.ˋ(this.ॱـ.ॱ() - 1);
                }
            }
            for (int i = 0; i < size; i++) {
                if (i >= ॱ) {
                    dgp o_dgp = (dgp) list.get(i);
                    HwSubTabWidget hwSubTabWidget = this.ॱـ;
                    hwSubTabWidget.getClass();
                    huawei.widget.HwSubTabWidget.a aVar = new huawei.widget.HwSubTabWidget.a(hwSubTabWidget, o_dgp.ˊ(), new chs(this));
                    aVar.ˎ(i);
                    this.ॱـ.ॱ(aVar, false);
                } else {
                    this.ॱـ.ˎ(i).ॱ(((dgp) list.get(i)).ˊ());
                }
            }
        }
    }

    private void ˊʽ() {
        if (this.ٴ == null) {
            ˊʻ();
        } else {
            ⁱ();
        }
    }

    protected void ⁱ() {
        if (this.ٴ != null) {
            Fragment ॱ = this.ٴ.ॱ(ˎ(this.ᐝʽ));
            if (ॱ instanceof cic) {
                ((cic) ॱ).ʻʻ();
            }
        }
    }

    public void ˏ(BaseDetailResponse baseDetailResponse) {
        if (baseDetailResponse != null && ᐝॱ(baseDetailResponse.ˊᐝ())) {
            if (ॱﹳ()) {
                ˋ(ˋ(baseDetailResponse));
                ˏ(baseDetailResponse.ʽॱ());
            }
            ˏͺ();
        }
    }

    protected void ˎ(BaseDetailResponse baseDetailResponse) {
        if (ॱﹳ() && baseDetailResponse != null && ᐝॱ(baseDetailResponse.ˊᐝ())) {
            ˊ(baseDetailResponse);
            ˏ(baseDetailResponse.ʽॱ());
        }
    }

    protected boolean ᐝॱ(int i) {
        return true;
    }

    protected void ͺ(boolean z) {
        if (this.ⁱ == null) {
            return;
        }
        if (z) {
            this.ⁱ.setVisibility(0);
        } else {
            this.ⁱ.setVisibility(8);
        }
    }

    private void ˋʻ() {
        if (this.ߺ == null) {
            return;
        }
        if (!this.ॱꓸ) {
            ˎ(this.ߺ, 8);
        } else if (this.ॱʾ == null) {
            Logger.e("BaseListFragment", "initExpandLayout, expandScrollLayout = null");
        } else {
            this.ॱʾ.setHasExpandLayout(true);
            ˎ(this.ߺ, 0);
            if (this.ߺ instanceof dhi) {
                this.ߺ.setDataFilterListener(this);
            }
            if (this.ߺ instanceof dhj) {
                if (!(this.ॱﹳ == null || ʻʽ() == null)) {
                    DataFilterSwitch ʻʽ = ʻʽ();
                    if (TextUtils.isEmpty(this.ॱﹳ.ˏ()) || this.ॱﹳ.ˏ().equals(ʻʽ.ˏ())) {
                        this.ॱﹳ = ʻʽ;
                    }
                }
                this.ߺ.setFilterData(this.ॱﹳ);
            }
        }
    }

    private String ˋʽ() {
        String str = "360301";
        if (!"homepage".equals(this.ॱㆍ)) {
            return str;
        }
        if (ॱꞌ()) {
            return "360201";
        }
        if (ॱᐧ()) {
            return "360301";
        }
        return "360101";
    }

    private LinkedHashMap<String, String> ˑॱ() {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("pagename", this.ʿॱ);
        linkedHashMap.put("pageid", this.ʼˊ);
        linkedHashMap.put("third_id", epr.ˎ().ˏ());
        linkedHashMap.put("service_type", String.valueOf(dgm.ˎ(ॱˋ())));
        linkedHashMap.put("time", String.valueOf(System.currentTimeMillis() - this.ㆍॱ));
        return linkedHashMap;
    }

    private void ͺˎ() {
        Logger.ˎ("BaseListFragment", "getAnalyticKey: " + ˋʽ() + ", getAnalyticInfo: " + ˑॱ().toString());
        dgh.ˋ(ˋʽ(), ˑॱ());
    }

    protected void ᶥॱ() {
        this.ᐝʽ.clear();
        ᶫ();
        if (this.ՙ != null) {
            this.ՙ.ˋ();
        }
    }

    protected void ㆍॱ() {
        if (ॱﹳ()) {
            this.ॱˈ = (LinearLayout) this.ॱˍ.findViewById(h.ॱʽ);
            if (this.ॱˈ == null) {
                return;
            }
            if (this.ॱꞌ == null || !this.ॱꞌ.ˏ()) {
                ˋ(this.ॱᐧ);
                return;
            }
            this.ॱꞌ.ॱ();
            this.ॱˈ.addView(this.ॱꞌ.ˋ(), new LayoutParams(-1, -2));
        }
    }

    protected void ˎ(cje o_cje) {
        if (this.ॱˈ != null) {
            cjf ˋ = cjd.ˋ(ॱˋ(), o_cje);
            if (ˋ == null && this.ॱᐨ) {
                ˋ = ͺˏ();
                if (ˋ.ˏ()) {
                    o_cje = new cje();
                    o_cje.ˎ(ˋ.ˎ());
                    o_cje.ˋ(ˋ.ᐝ());
                }
            }
            if (ˋ != null) {
                ˋ.ॱ((djb) this);
            }
            if (ˋ == null || !ˋ.ˏ()) {
                ˎ(this.ॱˈ, 8);
                return;
            }
            ˋ.ॱ();
            if (this.ॱꞌ != null && this.ॱꞌ.ˏ()) {
                this.ॱˈ.removeView(this.ॱꞌ.ˋ());
                this.ॱꞌ.ॱॱ();
            }
            this.ॱᐧ = o_cje;
            this.ॱꞌ = ˋ;
            this.ॱˈ.removeAllViews();
            this.ॱˈ.addView(this.ॱꞌ.ˋ(), new LayoutParams(-1, -2));
            ˎ(this.ॱˈ, 0);
        }
    }

    protected void ˊ(BaseDetailResponse baseDetailResponse) {
        if (this.ॱᶥ) {
            this.ॱᐧ = ˋ(baseDetailResponse);
        }
    }

    protected void ˋ(cje o_cje) {
        if (this.ॱˈ == null) {
            return;
        }
        if (this.ॱᶥ) {
            if (o_cje != null && this.ॱꞌ != null) {
                this.ॱᐧ = o_cje;
                if (o_cje.ˎ().equals(this.ॱꞌ.ᐝ())) {
                    this.ॱꞌ.ॱ(o_cje.ˏ());
                    return;
                }
            } else if (o_cje == null && this.ॱꞌ != null) {
                return;
            }
            ˎ(o_cje);
            return;
        }
        ˎ(this.ॱˈ, 8);
    }

    protected void ॱ(NodataWarnLayout nodataWarnLayout) {
        if (nodataWarnLayout != null) {
            nodataWarnLayout.setWarnImage(o.dky.a.ˊˊ);
            nodataWarnLayout.setWarnTextOne(j.ᐝᐝ);
            nodataWarnLayout.setViewVisible(e.WARN_BTN, 8);
            nodataWarnLayout.setViewVisible(e.WARN_TEXTTWO, 8);
        }
    }

    public void ˋॱ(boolean z) {
        int i;
        int i2 = 8;
        View view = this.ߵ;
        if (z) {
            i = 0;
        } else {
            i = 8;
        }
        ˎ(view, i);
        view = this.ॱʿ;
        if (z) {
            i = 0;
        } else {
            i = 8;
        }
        ˎ(view, i);
        view = this.ͺˎ;
        if (z) {
            i = 0;
        } else {
            i = 8;
        }
        ˎ(view, i);
        View view2 = this.ߴ;
        if (!z) {
            i2 = 0;
        }
        ˎ(view2, i2);
    }

    protected void ᶫ() {
        ˎ(this.ߵ, 8);
        ˎ(this.ॱʿ, 8);
        ˎ(this.ͺˎ, 8);
        ˎ(this.ߴ, 8);
    }

    private cjf ͺˏ() {
        BaseTitleBean baseTitleBean = new BaseTitleBean();
        baseTitleBean.ॱ(this.ˊʼ);
        return new DefaultTitle(ॱˋ(), baseTitleBean);
    }

    protected cje ˋ(BaseDetailResponse baseDetailResponse) {
        cje o_cje;
        cje o_cje2 = null;
        if (baseDetailResponse != null) {
            try {
                String ˉ = baseDetailResponse.ˉ();
                if (TextUtils.isEmpty(ˉ)) {
                    Logger.ˏ("BaseListFragment", "createTitleInfo, titleType is empty.");
                } else {
                    BaseTitleBean ˊ = cjd.ˊ(ˉ);
                    if (ˊ != null) {
                        JSONObject jSONObject = new JSONObject(baseDetailResponse.toJson());
                        o_cje = new cje();
                        try {
                            o_cje.ˋ(ˉ);
                            ˊ.fromJson(jSONObject);
                            ˊ.ˎ(this.ʼˊ);
                            ˊ.ˏ(this.ʽˋ);
                            ˊ.ˋ(this.ॱㆍ);
                            ˊ.ˊ(this.ˊʻ);
                            o_cje.ˎ(ˊ);
                        } catch (IllegalAccessException e) {
                            o_cje2 = o_cje;
                            Logger.e("BaseListFragment", "createTitleInfo, IllegalAccessException");
                            o_cje = o_cje2;
                            return o_cje != null ? o_cje : o_cje;
                        } catch (JSONException e2) {
                            o_cje2 = o_cje;
                            Logger.e("BaseListFragment", "createTitleInfo, JSONException");
                            o_cje = o_cje2;
                            if (o_cje != null) {
                            }
                        } catch (ClassNotFoundException e3) {
                            o_cje2 = o_cje;
                            Logger.e("BaseListFragment", "createTitleInfo, ClassNotFoundException");
                            o_cje = o_cje2;
                            if (o_cje != null) {
                            }
                        } catch (InstantiationException e4) {
                            o_cje2 = o_cje;
                            Logger.e("BaseListFragment", "createTitleInfo, InstantiationException");
                            o_cje = o_cje2;
                            if (o_cje != null) {
                            }
                        }
                        if (o_cje != null && this.ॱᐧ != null) {
                            return this.ॱᐧ;
                        }
                    }
                    Logger.ˏ("BaseListFragment", "createTitleInfo, titleBean == null");
                }
            } catch (IllegalAccessException e5) {
                Logger.e("BaseListFragment", "createTitleInfo, IllegalAccessException");
                o_cje = o_cje2;
                if (o_cje != null) {
                }
            } catch (JSONException e6) {
                Logger.e("BaseListFragment", "createTitleInfo, JSONException");
                o_cje = o_cje2;
                if (o_cje != null) {
                }
            } catch (ClassNotFoundException e7) {
                Logger.e("BaseListFragment", "createTitleInfo, ClassNotFoundException");
                o_cje = o_cje2;
                if (o_cje != null) {
                }
            } catch (InstantiationException e8) {
                Logger.e("BaseListFragment", "createTitleInfo, InstantiationException");
                o_cje = o_cje2;
                if (o_cje != null) {
                }
            }
        }
        o_cje = null;
        if (o_cje != null) {
        }
    }

    protected String ꓸॱ() {
        String str = null;
        if (this.ॱﾞ != null && this.ॱﾞ.ˋ()) {
            try {
                str = this.ॱﾞ.toJson();
            } catch (IllegalAccessException e) {
                Logger.e("BaseListFragment", "getSpinnerInfo error.");
            }
        }
        return str;
    }

    protected void ˏ(DataFilterSwitch dataFilterSwitch) {
        if (ᴵ()) {
            this.ॱﹳ = dataFilterSwitch;
            this.ॱꓸ = false;
            if (dataFilterSwitch != null && dataFilterSwitch.ʽ()) {
                this.ॱꓸ = true;
                FilterDataLayout.ˋ(dataFilterSwitch);
            }
        }
    }

    protected void ꜟॱ() {
        if (this.י instanceof chl) {
            BaseDetailResponse ʻ = ((chl) this.י).ʻ();
            if (ʻ != null) {
                ˋ(ॱ(ʻ));
                this.ॱᐧ = ˋ(ʻ);
                this.ʽᐝ = ʻ.ˋˊ();
                if (ﹳॱ()) {
                    this.ॱﹳ = ʻ.ʽॱ();
                    this.ॱꓸ = false;
                    if (this.ॱﹳ != null && this.ॱﹳ.ʽ()) {
                        this.ॱꓸ = true;
                    }
                }
                if (this.ॱꞌ == null && this.ॱᐧ != null && this.ॱᶥ) {
                    this.ॱꞌ = cjd.ˋ(ॱˋ(), this.ॱᐧ);
                    if (this.ॱꞌ != null) {
                        this.ॱꞌ.ॱ((djb) this);
                    }
                }
            }
            BaseRequest ʼ = ((chl) this.י).ʼ();
            if (ʼ != null) {
                this.ʻᐝ = ʼ.getCacheID();
            }
        }
    }

    public boolean ﹳॱ() {
        if (ॱꜟ() || ॱᐧ()) {
            return false;
        }
        return ᴵ();
    }

    public int ꜝ() {
        return this.ᐝʽ != null ? this.ᐝʽ.size() : 0;
    }

    private void ˏͺ() {
        Object obj = null;
        if (ॱﹳ()) {
            obj = ʻʽ();
        }
        if (obj == null) {
            ٴ();
        } else if (this.ॱﹳ == null || this.ॱﹳ.equals(obj)) {
            ٴ();
        } else {
            FilterDataLayout.ˋ(this.ॱﹳ);
            ʴ();
        }
    }

    private void ٴ() {
        if (!ﹳॱ()) {
            return;
        }
        if (ᴵ()) {
            if (this.ߵ == null) {
                return;
            }
            if (this.ॱʾ == null) {
                this.ߵ.removeAllViews();
                this.ߵ.addView(ॱˈ());
                return;
            }
            ˋʻ();
            ˊʽ();
        } else if (this.ߵ != null && this.ॱʿ == null) {
            this.ߵ.removeAllViews();
            this.ߵ.addView(ˉॱ());
        }
    }

    public void ʽᐝ() {
    }

    public void ʼᐝ() {
    }

    public void ˈॱ() {
    }

    public void ˊʼ() {
    }

    public void ʿॱ() {
    }

    public void ˋ(int i) {
        ˋ(a.ONSELECTED);
        if (this.ᐨॱ) {
            this.ㆍॱ = System.currentTimeMillis();
            if (!dof.ʽ(this.ʽˊ)) {
                this.ʾॱ = dgh.ॱ();
            }
        }
        this.ᵔ = true;
        if (this.ॱꞌ != null) {
            this.ॱꞌ.ˊ(o.cjf.a.TAB_SELECTED);
        }
        if (this.ॱﾟ == null) {
            BaseListFragmentProtocol baseListFragmentProtocol = (BaseListFragmentProtocol) ˆ();
            if (!(baseListFragmentProtocol == null || baseListFragmentProtocol.ˎ() == null)) {
                BaseListFragmentRequest ˎ = baseListFragmentProtocol.ˎ();
                this.ᐝʼ = ˎ.ॱˎ();
                this.ॱㆍ = ˎ.ॱˊ();
                this.ॱ = ˎ.ˋˊ();
                ˋ(ˏ(ˎ.ˋˋ(), this.ʽᐝ));
            }
        }
        if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onColumnSelected: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", pageLevel = " + this.ॱㆍ);
        }
        ॱˋ(i);
    }

    protected void ॱˋ(int i) {
        if (ﹳॱ() && this.ٴ != null && this.ॱˑ != null) {
            int ˋ = this.ॱˑ.getCurrentItem();
            if (MinimumFactory.getBoolValue(ContentManager.getInstant().getContext())) {
                ˋ = (this.ٴ.getCount() - ˋ) - 1;
            }
            Object ॱ = this.ٴ.instantiateItem(this.ॱˑ, ˋ);
            if (ॱ instanceof ciy) {
                ((ciy) ॱ).ˋ(i);
            }
        }
    }

    protected void ꞌॱ() {
        if (ﹳॱ() && this.ٴ != null && this.ॱˑ != null) {
            int ˋ = this.ॱˑ.getCurrentItem();
            if (MinimumFactory.getBoolValue(ContentManager.getInstant().getContext())) {
                ˋ = (this.ٴ.getCount() - ˋ) - 1;
            }
            Object ॱ = this.ٴ.instantiateItem(this.ॱˑ, ˋ);
            if (ॱ instanceof ciy) {
                ((ciy) ॱ).ʽˊ();
            }
        }
    }

    public void ʽˊ() {
        ˋ(a.UNSELECTED);
        if (this.ᐨॱ) {
            if (!dof.ʽ(this.ʽˊ)) {
                dgh.ˋ(ॱˋ(), this.ʽˊ, this.ʾॱ);
            }
            ͺˎ();
        }
        this.ᵔ = false;
        if (this.ॱꞌ != null) {
            this.ॱꞌ.ˊ(o.cjf.a.TAB_UNSELECTED);
        }
        if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onColumnUnselected: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", uri = " + this.ʼˊ);
        }
        ꞌॱ();
    }

    public void ʾॱ() {
        ꜞॱ();
    }

    protected void ꜞॱ() {
        if (!ʻʼ()) {
            if (!ﹳॱ()) {
                ﾞॱ();
            }
            if (ﹳॱ() && this.ٴ != null) {
                Fragment ʼ = this.ٴ.ʼ();
                if (ʼ instanceof ciy) {
                    ((ciy) ʼ).ʾॱ();
                }
            }
        } else if (Logger.ˎ()) {
            Logger.ˏ("BaseListFragment", "onColumnReselected: is already OnTop and return ");
        }
    }

    protected void ﾞॱ() {
        if (this.ͺˎ != null) {
            this.ͺˎ.ʽ();
        }
    }

    public void onScrollStateChanged(AbsListView absListView, int i) {
    }

    public void onScroll(AbsListView absListView, int i, int i2, int i3) {
    }

    public void ˏ(int i, cih o_cih) {
    }

    public List<CardBean> ˎ(String str, String str2) {
        return null;
    }

    protected boolean ﹺ() {
        return this.ˑॱ;
    }

    protected void ᐝॱ(boolean z) {
        this.ˑॱ = z;
    }

    public void ﾟॱ() {
        if (this.ॱˌ instanceof cip) {
            ((cip) this.ॱˌ).ˊ();
        }
        Logger.ˎ("BaseListFragment", "retryConnect, onLoadingRetry()");
        ʼᐝ();
    }

    public void ﹶ() {
    }

    public void ʳ() {
    }

    public void ˊ(SpinnerItem spinnerItem) {
        this.ॱﾞ = spinnerItem;
        ॱ(spinnerItem);
        ʴ();
    }

    public void ˋ(DataFilterSwitch dataFilterSwitch) {
        this.ॱﹳ = dataFilterSwitch;
        ˊ(dataFilterSwitch);
        ʴ();
    }

    private void ॱ(SpinnerItem spinnerItem) {
        if (this.ᐝʽ != null) {
            for (dgp o_dgp : this.ᐝʽ) {
                if (o_dgp != null) {
                    o_dgp.ॱ(spinnerItem);
                }
            }
        }
    }

    private void ˊ(DataFilterSwitch dataFilterSwitch) {
        if (this.ᐝʽ != null) {
            for (dgp o_dgp : this.ᐝʽ) {
                if (o_dgp != null) {
                    o_dgp.ˏ(dataFilterSwitch);
                }
            }
        }
    }

    protected DataFilterSwitch ʻʽ() {
        if (this.ॱꓸ) {
            return FilterDataLayout.ˊ();
        }
        return null;
    }

    public void ʴ() {
        if (ActivityUtil.isAcitivtyNotValid(ॱˋ()) || !ʾ()) {
            Logger.e("BaseListFragment", "notifyDataChanged, activity is reset");
        } else if (!doo.ˊ(ॱˋ())) {
            evk.ˋ(ॱˋ(), ॱ(j.ॱʼ), 0).ˋ();
        } else if (ﹳॱ()) {
            ʹॱ();
        } else {
            ˎͺ();
        }
    }

    public boolean ad_() {
        if (ﹳॱ()) {
            if (this.ߵ != null) {
                if (this.ߵ.canScrollVertically(-1)) {
                    return false;
                }
                return true;
            }
        } else if (this.ͺˎ != null) {
            if (this.ͺˎ.canScrollVertically(-1)) {
                return false;
            }
            return true;
        }
        return false;
    }

    public boolean ʻʼ() {
        if (!ﹳॱ()) {
            return ad_();
        }
        if (!(this.ٴ == null || this.ॱˑ == null)) {
            Fragment ॱ = this.ٴ.ॱ(this.ॱˑ.getCurrentItem());
            if (ॱ instanceof ciz) {
                return ((ciz) ॱ).ad_();
            }
            Logger.ˋ("BaseListFragment", "isChildOnTop(), unknown type, fragment: " + ॱ + ", uri:" + this.ʼˊ);
        }
        return false;
    }

    protected void ˎͺ() {
        Logger.ˎ("BaseListFragment", "onRefreshCurrPage: " + "titleName = " + this.ˊʼ + ", tableName = " + this.ʿॱ + ", isSelected = " + this.ᵔ);
        ᶥॱ();
        ॱˋ(false);
        ॱ(this.ᴵ);
        ʿˊ();
    }

    protected void ˎ(View view, int i) {
        if (view != null && view.getVisibility() != i) {
            view.setVisibility(i);
        }
    }

    protected void ʹॱ() {
        if (this.ٴ != null) {
            Bundle bundle = new Bundle();
            bundle.putSerializable("data_filter_switch", this.ॱﹳ);
            bundle.putSerializable("spinner_item", this.ॱﾞ);
            this.ٴ.ˎ(bundle);
            return;
        }
        Logger.e("BaseListFragment", "onRefreshTabPage, listPageAdapter == null");
    }

    public void ˎ(Bundle bundle) {
        if (bundle != null) {
            Serializable serializable = bundle.getSerializable("data_filter_switch");
            Serializable serializable2 = bundle.getSerializable("spinner_item");
            if (serializable instanceof DataFilterSwitch) {
                this.ॱﹳ = (DataFilterSwitch) serializable;
            }
            if (serializable2 instanceof SpinnerItem) {
                this.ॱﾞ = (SpinnerItem) serializable2;
                this.ॱꜟ = false;
            }
            ˎͺ();
            return;
        }
        Logger.e("BaseListFragment", "onDataChanged, bundle == null");
    }

    public void ʻʻ() {
        if (this.ـॱ != null) {
            if (!(this.י == null || ʽʻ() == null)) {
                this.י.ॱॱ();
            }
            ᐝʼ();
            return;
        }
        Logger.ˋ("BaseListFragment", "onRefreshByTabCache, cardListAdapter == null");
    }

    protected b ʽʻ() {
        if (ॱﾞ()) {
            return null;
        }
        return dgy.ॱ(this.ʼˊ);
    }

    public void ʼʽ() {
    }

    public void ˋ(ShareInfo shareInfo) {
    }

    public void ͺ(String str) {
    }

    private void ᐝ(int i) {
        List<chz> ʻॱ = this.י.ʻॱ();
        if (ʻॱ != null) {
            for (chz ˏ : ʻॱ) {
                List<CardBean> ˏ2 = ˏ.ˏ();
                if (ˏ2 != null) {
                    for (CardBean ʼ : ˏ2) {
                        ʼ.ʼ(i == 0);
                    }
                }
            }
        }
    }

    public int ʽʼ() {
        return this.ˊ;
    }

    public void ॱᐝ(int i) {
        Object obj = null;
        if (this.ˊ != i) {
            obj = 1;
        }
        this.ˊ = i;
        if (!(obj == null || this.ـॱ == null)) {
            ᐝ(i);
            dks.ˊ().ॱ(2);
        }
        ʽॱ(i);
    }

    protected void ʽॱ(int i) {
        if (ﹳॱ() && this.ॱˑ != null) {
            PagerAdapter ˎ = this.ॱˑ.getAdapter();
            if (ˎ instanceof cha) {
                Fragment ʼ = ((cha) ˎ).ʼ();
                if ((ʼ instanceof cid) && ((cid) ʼ).ʽʼ() != i) {
                    ((cid) ʼ).ॱᐝ(i);
                }
            }
        }
    }
}
